add main function
Revert "add main function"

This reverts commit 281b8a044e94461a9de25797d7aa5db8be43ce18.