avarage method
avarage corrected