try to fix call by reference