changing print to printLine