refactor style code