mod2 and mod3 merge