modify calculateRoa,use two normal for loop instead of iterator