[shitou] - format code, and refactor code