change the reference point for rewriting the callback function