add shrink function but bugly

Signed-off-by: xiehuc <xiehuc@gmail.com>