List.iter instead of List.iteri - for 3.12.1 compatibility