parameterize with function which extracts value of target metric