changed parameterized metric to work with descriptor