remove for each loop. fix int-uint comparison warning. #60