fix printing blank lines