reset data and clean up