A potentiometer is an ideal device of measuring potential difference because