prevent duplicate history