update FunctionMap