emit function declared