for measuring objects while moving