implemented first metric api