dual regression implemented