variable nweid is added.