* fix for loop to run more than once