fixed output of blank lines