modify the passed parameters using reference in a function equation