removing parameters passed by reference in getUnitID