began adding new _updateSimilarity method and helper functions