switch l and r