fix call time pass by reference warnings