new patch for mtk including dynamic vector size for measurements