updated with the xml reading