data splitting method updated