code for update content index