Improve on method resolutions to function declarations