got rid of extraneous linkedlist code