commets on using function v.s. loop
comments on using function v.s. loop