changed all C-like for for enumerationwith block