calling multiple times with a dynamic list in serial without recursion