index file now works