small change

during matrix creation, index i is being provided by enumerate now