state variables are now displayed in the console