remove attr_accessor
check if animal_id nil