add maxima hj method