changes to raw_rot_rel_time
better order of functions