fixed printf in header check