completed coding the index file but not error checked