adding p-n