added avg as prefix to variable names