adding more debugging print statements