updates to reset function