fixed sink parameter resolution within function definitions