mistake in photocell init