added thershold voltage

real confusing stuff, once reaches threachhold the line changes color