change to rule based formatting