preparing for xml