define self in reset method