code works better when you refer to the right variables