fixing syntax issue with respect to vector access