give user choice to use cosine distance