simplified some methods in average