added return value to update_data_availability