add more output to diagnose issue with algorithm