added photocell variable resistor