refine lang code and pass all test