add compact method for animals