init procedure for print