term fix P -> w for weights