delete logic implemnted