added rotate_ranef