performances (2 foreach in one)