reset method implemented