added module SBPFA for sampling functions