updated index file to be more readable