changing array scheme for index.html generation