initialization of difficulty and weight, calculation of quantities based on weight instead of priority alone