added header printing