fixed unneeded call-time pass-by-reference vars