i also would move this block out of the loop