bug fixes defect formatting