made it check to see if a variable already exists in any frame. If it is, it overwrites that value. Otherwise it creates a new local variable
made it check to see if a variable already exists in any frame. If it is, it overwrites that value. Otherwise it creates a new local variable