Ok, I fixed it! had some of the new code in slightly the wrong placed