switched old indexing with variables to initializer_list, much cleaner