added/renamed for new sampling functions