clean up indices and doc