added some linked list functionality