refactored the restartDone() into restart()