removed need to have the numofbins stored on the param server beforehand