fixed assignment s.t. only id is allowed on the lhs