update the function to create a positive sample for the training process