cleaned index from test code