renmaed FunctionTask to MethodTask