adding duffy transform and vertex functions