updated colorcode with update functions