add delete mode support