optimize code of Creature