generic index object working