rule design