understanding for-loop