pass a few more things by reference