fixed bug in index
removed console logs