changed code to make it enable to get raw xml format result