add linklist function to master