the second argument to foreach is not a list