library top and bottom highlight