Fixing the problem of not updating the xml with all entries (housekeeping still equired)
removing unused function