all optical device