save mutations.length in for loop