code for vbf analysis