move function to animal child