trying to fix prints-garbage problem