remove deprecated call-time pass by ref