changed inside-out to reversed for-loop