update Data code