refactoring code
refactored code
color hists
refactor completed
refactor completed