added align_rotation_axis function