refact code style