added diagnostic display functions