added reset method in model