beam sampling