found minor bug in measurement