rewrite the index function #229
Fixed #229
Merge branch 'master' of github.com:bay6/union