lset variables to local scope add for loop eventlistener