handle out of bounds
fix up debug output