Could you change this to for loop