updated type def, display, init and event reg