adjusts borders