added reset in the hooks