drop the if-main func for test