trim offsets