fixing main borders