included reset function