remove border in diagnostic