remove assign by reference