restart properly rewritten