function w/ param and only vardecl (w/o assign) working