similarity was printed to stdout. fixed