Index usability improvements2

nit: indent by 4 spaces throughout this function