adding into index