updated border for median