script to have loops