passed all arguments in methods by reference