color fix for functions