modified color function, now scales by max commit