rules building - completed (for now)