added debug to help troubleshoot compare problem