modified with different gains for controllers