some delete logiC