implemented deletion feature