added a restart level function