update index sample