solve delete problem