fixed untyped function return value