math: create new handle_right_shift() function