starting to add planned # of samples conditions