update data as required