checking preargN for validity
checking preargN for validity