updating cookies ref