removed static format strings, as was generating and AddressSanitizer problem
fixed compiler warning