corrections in 'cookies' functions arguments