pass parameters as references instead of copies (performance)