debug 3 cosine sim