first version of the undelete filter