passing parameters

Passing parameters to the function.  The first iteration changes color
on trigger but the second one does not.