correct borders