sample assignment