loglinear method added