change the logic on the rt or t rest params