working out editrules example as qb