fixed weird sprintf calls
Revert "fixed weird sprintf calls"

This reverts commit 5658c23a2ef76656b5ddc0ad05fcb2bd021630ea.
fixed weird function calls