simplified rotation logic