add is_deleted checks