refactoring chroma