changed how offsets are read