new version with for loop, but still shifted down