improved output of index numbers