moved suggested x and probability into 1 loop