update borders