minor modification to border