added newlines to debug output statements