refactor taobao code.