add autogenerated dia