499: rearrange for and assignments