update main and sleeptime