updtate examples for index usage