Optical device and manufacture thereof