remove unnecessary "ref" keyword.
all arguments to functions are always passed by reference