need to remove scaling from the offset calculations because scaling will be applied when these offsets are used later