debugged, and more debugging to do