forgot to mention,

if i could find a way to get the bad ones out, i would just use 2 separate programs, no need to encorporate them in one, so i guess i just need help getting the bad ones out, i can take care of the sorting part.