create function, loop