added display, changed index