better indexing in exp_rotation()