correctly assign variables in our enumerate loop