thanks to everyone for your help it turns out i am an idiot and forgot to change pin13 to pin 0 in the program