improve sampling and check for full rank q'q