fixed the arguments in the cv code for similarities