add algorithm for reduction prob