code consistency: foreach -> for