changed mapoffset to floating point precision