update data reading, not finish debugging yet