added statistics to similarity rank function