change format specification in a message from %f to %d