mostly commented out all the now bad calls to debug but fixed the call in the comment at the top so it can still be used