beginning to generalize avg