Reprogramming my Arduino after changing the serial pins to outputs

Hello,
I did a stupid thing and pinMode'd my serial lines (UNO 0 and 1) to outputs, now i cannot reprogram my UNO and i get "avrdude: stk500_recv(): programmer is not responding" from the software.
What can i do to reprogram it?
Thanks

I guess ill have to erase the ATMEGA completely reprogram the boot loader... can someone point me to the file of the bootloader to the UNO R1?

When you reset the Arduino, all pins become inputs. That is not your problem.

I understand but after a second my code begins and change it back to outputs...

Press & Hold the reset button until the IDE shows
"compiled xxx of 32xxx bytes" or similar.
May take a few tries to get the timing of the button release correct for the bootloader to see the start message from the PC.