error calculation, light commenting