fixed pointer error, linked list now prepends