using optical means in one or both functions