fixed die()