merge and design for xml gen and report