Better printing of index