added purge method