user splice() to save data