xml works
little changes to parsing method