method insert_data = fun i c ->
    self#set_data c (self#insert i)