added a function to add color domains