added threshold and showdiff