fixed syntax in similarity metric