add delete logic