changes to include isPF() electron