function <addlinesdataset> implemented