purge method replaced by clear