refactor chroma