Okay, so I found out the problem and have corrected it. I can't use strings in my program anymore, even outside the function like even if i declare a string in setup it crashes so i have completely ditched strings and am using only char arrays. Even though it is solved i want to know why i cant even declare 1 string. Thanks guys