programe insert_events