second version with relationship but not certificate yet