solve HEAD