reinstate the population generation into the XML load block because the length of the txt file is mutable