clean up HEAD method