remove sort in average processing