fixes to ranked relevance and collocation