add DOM generate children func param