modified script to only split data