improved Pe419 (more general)