remove errors method