why does the collisoon code use offsets the way it does?