scoped pointer

Signed-off-by: wuliang <wuliang-b@360.cn>