Two generalizations of the metamorphosis definition