fix random quantities