cookie runs correctly