refactor relative prob according to last commit.