'function within loop' article