add panic in prepare for