declare addedToHistory as false