added the ability to put error in the measurement