update comparison for deleting file