i followed the method using the avrdude-GUI but i still get the error:
avrdude: stk500_getsync(): not in sync: resp=0x3f
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x3f
i tried the command line version as well and everything seemed okay, there were no errors or fails but when i tried to upload a sketch it gave the same not in sync error.