delete still has some mistaks