small change to printing method