had restart functions backwards