butcher code...trying to understand loops and passing variables