add variables rhs and lhs