use simple for loop