stat controller for rest