functional streams decorator