added color object
updated to use color object