remove the empty lines that are not necessary