fix a and b range