removing redundant calls to populatexml