implementing cookies stats