functional ops with stream