add foreach binding