Improved matrix border