first metric
some functions to write