commented vector code