add purge method