correct left borders, add right borders