added loop variables and binding of looped items