Sorting out rules ti the right boxes