Quick aside,
To go to "heaven" at time of death.
If you're a rational atheist - use drugs - get the endorphins / dopamine going - then at the moment of death, when consciousness ends, you will be forever in a euphoric state. You will never ever ever progress out of a euphoric state - aka "heaven".
If you're an irrational Christian, then use your "hope" in meeting Jesus (and expectation of a blissful afterlife) to bring yourself into a deluded never ending state of "looking forward to something) at the moment of death.
Both work.
But choose one. Else - do do do do do do - you will get stuck in HELL.