printf working better