added a way to reset with r