initial version of purge