change sleep time and rename to main