working through more debugging