resolve function call