more index functions
added a index example