add a feature for bad slices and for laplacian, change two-threshold values