adding similarity functions