mains merged