remove pass-by-reference functions.