added cosine sim k