copied hal's fixed to print section