added more functionality to reset