merge with partitions. Now remaining thing is threshold work