printing the global variable width to the console