update index & build