is this for loop necessary?