implemented globals and loads for variables in on leftside of assignment