trying to fix weird printing issues