checking how to use index