user program works one period