Optical design of instruments