update data only once.