now randomPatch works fine