added methods for deleting and adding rules