implement assoc rules