updated vision code