add child cookie function