fixed error while renaming variables