making int -> size_t in a loop