p mode stuff