swapped our apply for for loop