implemented print-directive