for loop conversion base