solved printing problem