script for more traditional for loop