refactorying for Measuring