write rules into calculating reputation changes and totals