changed output to be displayed in console