removing text from WHEN section