check inputs in thresholdTwoLevels