handle head method when get is defined