rotate the offset in the right direction