fixed lhs generation