correct bowtie calculation to use 3D vectors