modified for country cookie issue