realized a fairly signifigant error in the implementation and fixed it.