changed interface on foreach