readData function ready