complete data-part code