foreach returns None now