H2 outside loop