renamed operator R to S