added new line char to print loop