tweaked stream method