add comment ranking when doing calculation