fix bug of merging more than 2 streams
add application of diagnosis
update application