Ping timer trouble!!

The pins led, led2, and led3 are not declared OUTPUT pins in setup. Does the program work any better if you declare them to be output pins, using the pinMode function?