code for helping with debug