autoname method on events