refactor code style as wine