correct offsets