remove discarded code