dynamic printf working