mask the for loop