for loop at command fix