removed broken mergeAverage method