with optical detecting means