added auto reset timer