removing excessive empty lines