trying to remedy printing-garbage issue