in progress writting results to xml file