ahh thank you disch i was able to get past the crash by adding an else statment after the inSet check and incrementing i..
as for the 365 loop I couldn't think of a better way to verify the order
I spose I could run some sort of math equation but using each possible as a reference just seemed much simpler.