added average feature