Index file changes

I think there might be a better way how to do this but I’ll have code
my way there