remove deprecated call by reference