* test main. fix some code