added foreach-API