fix for strict pass-by-reference error