add times_rotate function