change the name of variable for(a,b) to (start, end)