add delete task funciton, some error field