adding debug output.