renamed index.js and it's function