little changes to printing method