change cosine similarity flag