added reset in the initialization