fixed mourning code