some optimization

Signed-off-by: dupeng <dupeng.dev@gmail.com>