Doing better reset on data array