removed for..in loops cause of several U.B in release mode