add to index solved
better splitting solved