adding error report display function