metric definition prototype