updated data and index