change ObjectMap to ObjectIntMap