experimenting with similarity function