copy by reference