linkedlist:tested the influence of function calls during a loop