fix format string to match the number of input values