fixed print redirect