addend function for streams