add name and public event