improved synthetic matrix generation