added compare to transform and xml formatting