fixes broken linkedlist problem
resolves segfault error
adds label data structure