working on cookie problem