fixes printing variable instead of assigning