improve printf formatting part