put data in index