set $e and $p