cleaned dead code
removed \0 in format string