chnage in foreach