add Reset method to Writer