squash: fix for-loops