correcting the offset