added rounding for threshold voltage