added reset callback