removed unneeded adminrules function and changed arrays to []