update offsets