metrics model, and fixed error in metrics index