use List interface instead of LinkedList implementation