changes in index.js