index not displaying properly