iterate, add linked list template