making croc a mapobject