Update functor.cpp