add xcf for diagram