make it take the cookie first