dicked around changing a few variable names and removed some unnecessary debugging things all in the name of readablity