remove lines that do nothing