solved some printing issues