removed untested die function