modularizing the hue