fixed issues pertaining to the death function