measurement and visualization refactoring 3