little change on index.js