updated clone method for animal composite