define some handlers for build Sig or Relation.