adding logic for stereo vision