added cosine to metrics