added code for dual axis regression