implemented clear history