rules: define edge variables + small fix