use reset instead of clear