added more debugging lines