sum(grey function) functional