fixed some minor printing issues