remove string conversion in purge method