bug fixed in loop vars