added p controller to model