added printing def