fixed erroneous line removal