set up code to sample for red-plate