- walking layers with foreach