use Panicf instead of Panic