When chanting, do not stand by the feet of the deceased because it will lead the person’s focus downward which tends to affect rebirth negatively. As a person is about to stop breathing, one must stand at the crown of the person’s head, which is the north, pulling constantly the hair at the vertex, patting the head lightly and say to the deceased loudly, “Chenrezig, the bodhisattva of great compassion, is on top of your head. Please pray to him wholeheartedly. You are leaving soon. Focus all your attention on the vertex wherefrom you will be leaving.” If a person has been dead for a long time, all these would be useless.
~Depicted from THE HANBOOK FOR LIFE'S JOURNEY - On Death And Rebirth-How to Face Death