added comment about resetting callback function