function object copying