add probability functions