clean up on index