added delete done command and fixed the bug