respect the loops value in the range()