cleanup unused params in measure() [skip ci]