priority --> weight