further implementation of vision code