add sleep function in main