avg array added