change l/r into lhs/rhs