fixed more printing issues