working version of pieter meter