adding history
adapted cookie