refactor of main
reverse clock