add split train test data function