fixed the console outputs so that they utilized variables