modify lflist to one node head and tail format