starting loop