found an instantiation within the function itself