added date index, threshold prob