fixed indexing for animal's with incomplete data