the resistance R is variable