task done and restore