more debugging added to find the issue