writing to xml file added