alert data vs data[rank]