hidden region recovery in JPred and new hidden region pruning function