implemented a new keys array to more easily organize the data