now working with xml