another splitdata method added