function to restart modeline