getting the borders right