prevented consecutive duplicate entries in history