added working v.simple version of sampling probability for testing