added analyze for for each loop