perform some border magic