debugging: making forEach work