about to implement a function to reset chain