diagnostics for null head problem