remove 'foreach' syntax