displayIndex(), fixes #5