remove empty lines from output