changed message printing to the screen