finish dataset API