added some for loop tricks