changed cookie variable because it was causing errors