add is_deleted checking