highlight and return buffer