remove unnecessary die() in snippet