add x+1 to for loop