sop lines were removed and logger statements were added