add in diagnostic output statements