fixed error in index.js again