moved the colorObj to the service layer.