fix for-loop syntax.