Using methods of nonstandard analysis it is proved that all measurable solutions of the equation $f(x+y)=g(f(x),\, f(y),\,\, x, y)$ (with $g$ continuous) are continuous.