make mapper an object