placed merging step inside the analyzer