add clear method to remove all entries