removing unnecessary sop lines