added photocell