modified mammal.js