refactoring & coloring