Why do you use two loops instead of one method call?