working sampler for existing matrices