finish the data manager & write