collecting data to create a training sample