make it reusable

Signed-off-by: shockley_lab <shockleylee@gmail.com>