panic->error
remove debug code