recording correct before/after offsets