getting array stats