use HastTable for merging