simplify with stream and/or foreach

simplify same interactions with stream and/or foreach