purge logics