added primative line removal