joiner updated to produce output