replaced occurences of home with index