added foreach to either