added \n to end of line