fixed invocation code (doh)
fixed param typo
clearly been writing to much Java… removed "var" ident